package com.yangfei.mystudy1020.animation.AnimActivity;

import android.animation.ObjectAnimator;

public class LaunchRocketValueAnimatorAnimationAnimationActivity extends BaseAnimationActivity {
    @Override
    protected void onStartAnimation() {
        // 1
        ObjectAnimator objectAnimator = ObjectAnimator.ofFloat(rocket, "translationY", 0f, -screenHeight);

        // 2
        objectAnimator.setDuration(BaseAnimationActivity.DEFAULT_ANIMATION_DURATION);
        objectAnimator.start();
    }
}
